package com.yml.mall.shipping.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;

/**
 * @ClassName InsertDTO
 * @Author Administrator
 * @Date 2020/4/10   17:30
 */
@Data
@Accessors(chain = true)
@ApiModel("新建地址请求对象")
public class InsertAndUpdateDTO {
    @ApiModelProperty( "用户ID")
    private Integer userId;

    @NotBlank(message = "收件人姓名不能为空")
    @ApiModelProperty( "收件人姓名")
    private String receiverName;

    @ApiModelProperty( "收件人电话")
    private String receiverPhone;

    @NotBlank(message = "手机号不能为空")
    @ApiModelProperty( "收件人手机")
    private String receiverMobile;

    @NotBlank(message = "收件人所在省份不能为空")
    @ApiModelProperty( "省份")
    private String receiverProvince;

    @NotBlank(message = "收件人所在城市不能为空")
    @ApiModelProperty( "城市")
    private String receiverCity;

    @NotBlank(message = "收件人乡镇不能为空")
    @ApiModelProperty( "乡镇")
    private String receiverDistrict;

    @ApiModelProperty( "详细地址")
    private String receiverAddress;

    @ApiModelProperty( "邮编")
    private String receiverZip;
}
